import java.util.Scanner;

public class main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        // 读取电脑的价格
        System.out.print("请输入电脑的价格: ");
        int price = scanner.nextInt();

        // 初始化变量
        int day = 0;
        int totalAmount = 0;
        int dailyAmount = 1;

        // 计算累积金额直到达到或超过价格
        while (totalAmount < price) {
            totalAmount += dailyAmount;
            day++;
            dailyAmount++;
        }

        // 输出结果
        System.out.println("小明第 " + day + " 天可以达成心愿！");
    }
}
